Skip to content

Commit

Permalink
fixing deps
Browse files Browse the repository at this point in the history
  • Loading branch information
petergjoel committed Sep 10, 2021
1 parent 5ae7685 commit 048bc4a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ endif()

add_library(strategy SHARED ${HEADER_FILES} libz2s.cpp ZonotopStrategy.cpp SimpleTree.cpp)
if (STRATEGY_GetDependencies)
add_dependencies(strategy ptrie json)
add_dependencies(strategy ptrie nlohmann_json)
endif (STRATEGY_GetDependencies)
target_include_directories (strategy PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

add_library(strategyStatic STATIC ${HEADER_FILES} libz2s.cpp ZonotopStrategy.cpp SimpleTree.cpp)
if (STRATEGY_GetDependencies)
add_dependencies(strategyStatic ptrie json)
add_dependencies(strategyStatic ptrie nlohmann_json)
endif (STRATEGY_GetDependencies)
target_include_directories (strategyStatic PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
set_target_properties(strategyStatic PROPERTIES OUTPUT_NAME strategy)

if(NOT LIBSTRATEGY_OnlyLibrary)
add_executable(z2s ${HEADER_FILES} main.cpp ZonotopStrategy.cpp SimpleTree.cpp)
if (STRATEGY_GetDependencies)
add_dependencies(z2s ptrie json)
add_dependencies(z2s ptrie nlohmann_json)
endif (STRATEGY_GetDependencies)
target_link_libraries(z2s PRIVATE stdc++fs ${Boost_LIBRARIES})
endif()
Expand Down

0 comments on commit 048bc4a

Please sign in to comment.