summaryrefslogtreecommitdiffhomepage
path: root/Starshatter/CMakeLists.txt
blob: 9623f9a7c56889223854765b740d811ef4a9acfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
project(Starshatter)
include(GitDescribe)
include(GitToResource)
add_executable(
	Starshatter WIN32
	Main.cpp
	)
target_include_directories(
	Starshatter
	PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
	)
target_link_libraries(
	Starshatter
	PRIVATE StarsEx
	)
git_describe(VERSION)
git_to_resource(RC_VERSION ${VERSION})
configure_file(Starshatter.rc.conf ${CMAKE_CURRENT_BINARY_DIR}/Starshatter.rc @ONLY)
target_sources(
	Starshatter
	PUBLIC ${CMAKE_CURRENT_BINARY_DIR}/Starshatter.rc
	)
install(TARGETS Starshatter RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX})