-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
46 lines (33 loc) · 944 Bytes
/
CMakeLists.txt
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
cmake_minimum_required(VERSION 2.6)
project(eternalnomad)
#Don't forget to upgrade
set(VERSION_MAJOR 0) #Major Version
set(VERSION_MINOR 0) #Minor Version
set(VERSION_PATCH 1) #Patchlevel
set(VERSION_EXTRA "unstable") #Extra information for special versions
set(VERSION_PATCH ${VERSION_PATCH}-${VERSION_EXTRA})
set(VERSION_STRING "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
MESSAGE("Now building ${VERSION_STRING} ...")
SET(CMAKE_MODULE_PATH "${ecrase_SOURCE_DIR}/CMakeModules;${CMAKE_MODULE_PATH}")
file(
GLOB_RECURSE
source_files
src/*
)
file(
GLOB_RECURSE
data_files
data/*
)
if (WIN32)
set(CMAKE_RC_COMPILE_OBJECT "${CMAKE_RC_COMPILER} -i <SOURCE> -o <OBJECT> -O coff")
set(source_files icon.rc ${source_files})
endif()
find_package(Curses REQUIRED)
link_libraries(
${CURSES_LIBRARY}
)
add_executable(
eternalnomad
${source_files}
)