blob: ce17999846f4a8db6b11dde32f3c17c781e1b5a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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})
|