diff options
author | Aki <please@ignore.pl> | 2024-03-06 21:47:34 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2024-03-06 21:47:34 +0100 |
commit | a85fcbf8720562e77e0441ac26cb99d89564400c (patch) | |
tree | a15d30b7d00645685c50c291871d34aa5b188bc0 /ArchiveEx | |
parent | 54fa233a00607b9436c03c78b50b9107a33baa0a (diff) | |
parent | 1c558822681bbed5121bcc19816cbbac6a437b2a (diff) | |
download | starshatter-a85fcbf8720562e77e0441ac26cb99d89564400c.zip starshatter-a85fcbf8720562e77e0441ac26cb99d89564400c.tar.gz starshatter-a85fcbf8720562e77e0441ac26cb99d89564400c.tar.bz2 |
External projects with established upstream are no longer part of this source tree
Diffstat (limited to 'ArchiveEx')
-rw-r--r-- | ArchiveEx/CMakeLists.txt | 42 |
1 files changed, 12 insertions, 30 deletions
diff --git a/ArchiveEx/CMakeLists.txt b/ArchiveEx/CMakeLists.txt index 99ea254..faaedda 100644 --- a/ArchiveEx/CMakeLists.txt +++ b/ArchiveEx/CMakeLists.txt @@ -1,33 +1,15 @@ project(ArchiveEx) -add_library( - ArchiveEx - Archive.cpp - ) -target_include_directories( - ArchiveEx - PUBLIC . - ) -target_link_libraries( - ArchiveEx - PRIVATE Zlib::zlib - ) -add_executable( - dat - dat.cpp - ) -target_link_libraries( - dat - PRIVATE ArchiveEx - ) + + +add_library(${PROJECT_NAME} SHARED Archive.cpp) +target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) +target_link_libraries(${PROJECT_NAME} PRIVATE Zlib::zlibstatic) +install(TARGETS ${PROJECT_NAME} RUNTIME COMPONENT Runtime DESTINATION ${CMAKE_INSTALL_PREFIX}) + + +add_executable(dat dat.cpp) +target_link_libraries(dat PRIVATE ${PROJECT_NAME}) if(WIN32) - target_link_libraries( - dat - PRIVATE -l:libshlwapi.a - ) + target_link_libraries(dat PRIVATE -lshlwapi) endif() -install( - TARGETS dat - RUNTIME - COMPONENT Runtime - DESTINATION ${CMAKE_INSTALL_PREFIX} - ) +install(TARGETS dat RUNTIME COMPONENT Tools DESTINATION ${CMAKE_INSTALL_PREFIX}) |