2024-02-01 22:54:06 -05:00
|
|
|
cmake_minimum_required(VERSION 3.15)
|
|
|
|
|
|
|
|
project(nanosm
|
|
|
|
LANGUAGES CXX
|
|
|
|
)
|
|
|
|
|
|
|
|
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
|
|
|
|
|
|
|
|
include(Policies)
|
|
|
|
include(ProjectFuncs)
|
|
|
|
include(CompilerFlags)
|
|
|
|
|
2024-02-01 23:20:42 -05:00
|
|
|
add_subdirectory(third_party/tomlplusplus)
|
2024-02-01 22:54:06 -05:00
|
|
|
|
|
|
|
add_executable(nanosm
|
|
|
|
src/main.cpp
|
|
|
|
|
2024-02-01 23:20:42 -05:00
|
|
|
src/tomlpp_src.cpp
|
|
|
|
|
2024-02-01 23:06:19 -05:00
|
|
|
# glue code
|
2024-02-01 22:54:06 -05:00
|
|
|
src/EventLoop.cpp
|
2024-02-01 23:06:19 -05:00
|
|
|
src/Timer.cpp
|
|
|
|
src/WordExp.cpp
|
|
|
|
src/Process.cpp
|
2024-02-02 05:34:37 -05:00
|
|
|
src/RestartingProcess.cpp
|
2024-02-01 22:54:06 -05:00
|
|
|
)
|
|
|
|
|
2024-02-01 23:20:42 -05:00
|
|
|
target_compile_definitions(nanosm PRIVATE
|
|
|
|
-DTOML_HEADER_ONLY=0
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(nanosm PRIVATE
|
|
|
|
tomlplusplus::tomlplusplus
|
|
|
|
)
|
|
|
|
|
2024-02-01 22:54:06 -05:00
|
|
|
nanosm_target(nanosm)
|
|
|
|
|
|
|
|
# todo: cmake install sex
|