-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
55 lines (45 loc) · 1.05 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
project(netlizard)
add_definitions(-D_NL_STATIC)
set(CMAKE_CXX_STANDARD 17)
include_directories(libnetlizard . src src/lib src/io src/id src/math)
add_subdirectory(libnetlizard)
SET(LIBRARY_OUTPUT_PATH .)
link_directories(
${PROJECT_SOURCE_DIR}/libnetlizard
)
# Specifies libraries CMake should link to your target library. You
# can link multiple libraries, such as libraries you define in this
# build script, prebuilt third-party libraries, or system libraries.
SET(SRC_LIST main.cpp
src/lib/str.cpp
src/lib/buffer.cpp
src/lib/dict.cpp
src/lib/drawvert.cpp
src/io/filesystem.cpp
src/id/material.cpp
src/id/brush.cpp
src/id/entity.cpp
src/id/mapfile.cpp
src/id/def.cpp
src/math/maths.cpp
src/math/vector.cpp
src/math/matrix.cpp
src/math/plane.cpp
src/math/bounds.cpp
src/converter.cpp
src/converter_texture.cpp
src/converter_material.cpp
src/converter_map.cpp
src/converter_mapdef.cpp
src/converter_command.cpp
)
add_executable(
netlizard_conv
${SRC_LIST}
)
target_link_libraries(
netlizard_conv
PUBLIC
netlizard
)
add_dependencies(netlizard_conv netlizard)