|
|
@ -20,11 +20,6 @@ FetchContent_Declare(
|
|
|
|
)
|
|
|
|
)
|
|
|
|
FetchContent_MakeAvailable(tomlplusplus)
|
|
|
|
FetchContent_MakeAvailable(tomlplusplus)
|
|
|
|
|
|
|
|
|
|
|
|
file(GLOB nameFile "src/*.cpp")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
add_library(rpclib_lib STATIC IMPORTED)
|
|
|
|
|
|
|
|
set_target_properties(rpclib_lib PROPERTIES IMPORTED_LOCATION "${rpclib_BINARY_DIR}/librpc.a")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
add_executable(planificador src/host.cpp src/runner.cpp src/config.cpp src/main.cpp)
|
|
|
|
add_executable(planificador src/host.cpp src/runner.cpp src/config.cpp src/main.cpp)
|
|
|
|
target_compile_features(planificador PUBLIC cxx_std_17)
|
|
|
|
target_compile_features(planificador PUBLIC cxx_std_17)
|
|
|
|
|
|
|
|
|
|
|
@ -34,5 +29,4 @@ include_directories(${rpclib_SOURCE_DIR}/include)
|
|
|
|
SET(THREADS_PREFER_PTHREAD_FLAG ON)
|
|
|
|
SET(THREADS_PREFER_PTHREAD_FLAG ON)
|
|
|
|
find_package(Threads REQUIRED)
|
|
|
|
find_package(Threads REQUIRED)
|
|
|
|
target_link_libraries(planificador PRIVATE Threads::Threads)
|
|
|
|
target_link_libraries(planificador PRIVATE Threads::Threads)
|
|
|
|
# Lier votre exécutable avec la bibliothèque rpclib
|
|
|
|
target_link_libraries(planificador PRIVATE rpc)
|
|
|
|
target_link_libraries(planificador PRIVATE rpclib_lib)
|
|
|
|
|
|
|
|