Skip to content

Commit 49f03f2

Browse files
committed
Add ScriptCompiler CMakeLists with nlohmann-json integration
1 parent 9ba82e0 commit 49f03f2

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
set(SCRIPTCOMPILER_SRC
2+
"ScriptCompiler.cpp"
3+
)
4+
5+
find_package(nlohmann_json CONFIG REQUIRED)
6+
7+
add_executable(core_scriptcompiler)
8+
set_target_properties(core_scriptcompiler PROPERTIES OUTPUT_NAME scriptcompiler)
9+
10+
target_sources(core_scriptcompiler PRIVATE ${SCRIPTCOMPILER_SRC})
11+
12+
target_link_libraries(core_scriptcompiler PRIVATE
13+
nlohmann_json::nlohmann_json
14+
)
15+
16+
if(WIN32 OR "${CMAKE_SYSTEM}" MATCHES "Windows")
17+
target_link_options(core_scriptcompiler PRIVATE /subsystem:console)
18+
endif()
19+

0 commit comments

Comments
 (0)