Add flag to compile full version of simapi
This commit is contained in:
parent
54910a434c
commit
d7c1ec36d6
|
|
@ -13,10 +13,9 @@ endif()
|
||||||
SET_SOURCE_FILES_PROPERTIES( src/gilles.c PROPERTIES LANGUAGE C)
|
SET_SOURCE_FILES_PROPERTIES( src/gilles.c PROPERTIES LANGUAGE C)
|
||||||
set(CMAKE_BUILD_TYPE Debug)
|
set(CMAKE_BUILD_TYPE Debug)
|
||||||
|
|
||||||
|
|
||||||
project(gilles)
|
project(gilles)
|
||||||
|
|
||||||
set(CMAKE_EXE_LINKER_FLAGS "-Wl,--no-as-needed -ldl")
|
set(CMAKE_EXE_LINKER_FLAGS "-Wl,--no-as-needed -ldl")
|
||||||
|
|
||||||
find_package(eclipse-paho-mqtt-c REQUIRED)
|
find_package(eclipse-paho-mqtt-c REQUIRED)
|
||||||
|
|
||||||
add_subdirectory(src/gilles/gameloop)
|
add_subdirectory(src/gilles/gameloop)
|
||||||
|
|
@ -27,7 +26,6 @@ add_subdirectory(src/gilles/slog)
|
||||||
add_executable(gilles src/gilles/gilles.c)
|
add_executable(gilles src/gilles/gilles.c)
|
||||||
target_link_libraries(gilles m ncurses argtable2 config gameloop helper slog simulatorapi eclipse-paho-mqtt-c::paho-mqtt3c)
|
target_link_libraries(gilles m ncurses argtable2 config gameloop helper slog simulatorapi eclipse-paho-mqtt-c::paho-mqtt3c)
|
||||||
|
|
||||||
|
|
||||||
# used for enabling additional compiler options if supported
|
# used for enabling additional compiler options if supported
|
||||||
include(CheckCXXCompilerFlag)
|
include(CheckCXXCompilerFlag)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,4 +6,7 @@ set(gameloop_source_files
|
||||||
set(LIBXML_INCLUDE_DIR /usr/include/libxml2)
|
set(LIBXML_INCLUDE_DIR /usr/include/libxml2)
|
||||||
include_directories("." ${LIBXML_INCLUDE_DIR})
|
include_directories("." ${LIBXML_INCLUDE_DIR})
|
||||||
|
|
||||||
|
|
||||||
add_library(gameloop STATIC ${gameloop_source_files})
|
add_library(gameloop STATIC ${gameloop_source_files})
|
||||||
|
|
||||||
|
target_compile_definitions(gameloop PRIVATE SIMMAP_ALL)
|
||||||
|
|
|
||||||
|
|
@ -13,3 +13,4 @@ set(simulatorapi_source_files
|
||||||
)
|
)
|
||||||
|
|
||||||
add_library(simulatorapi STATIC ${simulatorapi_source_files})
|
add_library(simulatorapi STATIC ${simulatorapi_source_files})
|
||||||
|
target_compile_definitions(simulatorapi PRIVATE SIMMAP_ALL)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue