-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
64 lines (50 loc) · 1.24 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
CMAKE_MINIMUM_REQUIRED(VERSION 3.1)
PROJECT(SSCore)
ADD_DEFINITIONS(-DBUILDING_SS_CORE)
SET(LOCAL_SOURCES_FILES
src/script.cpp
src/core.cpp
src/core.h
src/log.cpp
src/macros.cpp
src/modules.h
src/math/matrix.cpp
src/uri/uri.cpp
src/uri/schemas.cpp
src/uri/file_schema.cpp
src/uri/schemas.h
src/modules/mod_ss.c
src/modules/mod_log.c
src/modules/mod_uri_loader.cpp
src/modules/mod_render2d.cpp
src/modules/mod_resource.cpp
src/render/draw_batch.h
src/render/draw_batch.cpp
src/render/render_resources.cpp
src/resource/resource_load.cpp
src/resource/resource_manager.cpp
src/decoders/decoder.h
src/decoders/decoder_win32.cpp
src/decoders/decoder_android.cpp
src/decoders/decoder_ios.cpp
src/stage2d/stage2d.h
src/stage2d/stage2d.cpp
src/stage2d/mod_stage2d.cpp
)
LINK_LIBRARIES(${SS_LUA_LIBNAME})
LINK_DIRECTORIES(${LUA_LIB})
ADD_LIBRARY(SSCore
SHARED
${LOCAL_SOURCES_FILES}
)
IF(SS_HAVE_OUTPUT_DIRECTORY)
SET_TARGET_PROPERTIES(
SSCore
PROPERTIES
RUNTIME_OUTPUT_DIRECTORY $ENV{SS_BINARY_PATH}
LIBRARY_OUTPUT_DIRECTORY $ENV{SS_BINARY_PATH}
ARCHIVE_OUTPUT_DIRECTORY $ENV{SS_ARCHIVE_PATH}
PDB_OUTPUT_DIRECTORY $ENV{SS_PDB_PATH}
)
ENDIF(SS_HAVE_OUTPUT_DIRECTORY)
SET_PROPERTY(TARGET SSCore PROPERTY FOLDER "Core")