summaryrefslogtreecommitdiffhomepage
path: root/ArchiveEx/CMakeLists.txt
blob: 6010cead5822258b5b6a8eb7004bcfb3e8f0e6fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
	)
if(WIN32)
	target_link_libraries(
		dat
		PRIVATE -l:libshlwapi.a
		)
endif()
install(TARGETS dat RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX})