forked from DiegoRibeiro/zezenia_gfx_dumper
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
29 lines (23 loc) · 845 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
cmake_minimum_required (VERSION 2.6)
project (zezenia_sprite_dumper)
# version number
set (ZEZENIA_SPRITE_DUMPER_VERSION_MAJOR 1)
set (ZEZENIA_SPRITE_DUMPER_VERSION_MINOR 0)
# configure a header file to pass some of the CMake settings
# to the source code
configure_file (
"${PROJECT_SOURCE_DIR}/src/version.h.in"
"${PROJECT_BINARY_DIR}/version.h"
)
# add the binary tree to the search path for include files
# so that we will find version.h
include_directories("${PROJECT_BINARY_DIR}")
# library
include_directories ("${PROJECT_SOURCE_DIR}/d_bitmap/src")
add_subdirectory (d_bitmap)
add_executable(dumpZ "${PROJECT_SOURCE_DIR}/src/main.c")
target_link_libraries (dumpZ d_bitmap)
# add the install targets
install (TARGETS dumpZ DESTINATION bin)
install (FILES "${PROJECT_BINARY_DIR}/version.h"
DESTINATION include)