blob: a40fcdc0111336d6d7f972c58f5ac2f5d21def54 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
project(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 -lshlwapi)
endif()
generate_emulator(dat LIBS ${PROJECT_NAME})
install(TARGETS dat RUNTIME COMPONENT Tools DESTINATION ${CMAKE_INSTALL_PREFIX})
|