-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathCMakeLists.txt
31 lines (22 loc) · 930 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
set(NPC_EXAMPLES dialogue_example npc_example conversation_mode_example battle_move_example_2021
battle_npc_with_time_example_2022 npc_example_2022)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -lpthread")
add_executable(dialogue_example
dialogue_example.c)
add_executable(npc_example
npc_example.c)
add_executable(conversation_mode_example
conversation_mode_example.c)
add_executable(battle_move_example_2021
battle_move_example_2021.c)
add_executable(npc_example_2022 npc_example_2022.c)
add_executable(battle_npc_with_time_example_2022
battle_npc_with_time_example_2022.c)
# Link with chiventure libraries
foreach(example ${NPC_EXAMPLES})
foreach(module ${CHIVENTURE_MODULES})
target_link_libraries(${example} ${module} pthread)
endforeach(module)
endforeach(example)
add_custom_target(npc-examples
DEPENDS ${NPC_EXAMPLES})