Skip to content

Commit a1f1f21

Browse files
committed
Added installs (useful for Linux) + /bin dir in root added to .gitignore
1 parent 7cdbe41 commit a1f1f21

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,6 @@ CMakeCache.txt
5252
tests_tmp_dll/
5353
tests_tmp_app/
5454
*.aps
55+
56+
# Just because I like building into /bin...
57+
/bin

src/asar/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@ if(ASAR_GEN_EXE)
238238

239239
set_target_properties(asar-standalone PROPERTIES OUTPUT_NAME "asar")
240240
set_target_properties(asar-standalone PROPERTIES PDB_NAME "asar.exe")
241+
242+
install(TARGETS asar-standalone)
241243
endif(ASAR_GEN_EXE)
242244

243245

@@ -255,10 +257,13 @@ if(ASAR_GEN_DLL)
255257
${ASAR_SHARED_SOURCE_FILES}
256258
${ASAR_LIB_RESOURCE_FILES}
257259
)
260+
258261
target_compile_definitions(asar PRIVATE "ASAR_SHARED")
259262
set_asar_shared_properties(asar "T" TRUE)
260263

261264
set_target_properties(asar PROPERTIES PDB_NAME "asar.dll")
265+
266+
install(TARGETS asar)
262267
endif(ASAR_GEN_DLL)
263268

264269

@@ -278,5 +283,7 @@ if (ASAR_GEN_LIB)
278283
target_compile_definitions(asar-static PRIVATE "ASAR_STATIC")
279284
set_asar_shared_properties(asar-static "D" FALSE)
280285

286+
install(TARGETS asar-static)
287+
281288
# there's no need to set the PDB name since static libraries don't produce PDBs
282289
endif()

0 commit comments

Comments
 (0)