Skip to content
Snippets Groups Projects
Unverified Commit 29c6d97e authored by Evgeny Kashirin's avatar Evgeny Kashirin
Browse files

Fix minor CMake bug

parent b9e39497
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,7 @@ string(REPLACE ".cpp" ".h" GLAUBER_HEADERS "${GLAUBER_SOURCES}")
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
ROOT_GENERATE_DICTIONARY(${DICT_FILE_NAME} ${CENTRALITY_HEADERS} ${GLAUBER_HEADERS} LINKDEF src/CentralityLinkDef.h)
add_library(Centrality SHARED ${CENTRALITY_SOURCES} ${DICT_FILE_NAME})
add_library(Centrality SHARED ${CENTRALITY_SOURCES} ${GLAUBER_SOURCES} ${DICT_FILE_NAME})
target_link_libraries(Centrality ${ROOT_LIBRARIES})
add_custom_command(
TARGET Centrality POST_BUILD
......@@ -101,9 +101,7 @@ add_executable(main main.cpp)
target_link_libraries(main Centrality ${ROOT_LIBRARIES})
target_include_directories(main PUBLIC src)
add_executable(glauber glauber/main.cpp ${GLAUBER_SOURCES})
add_executable(glauber glauber/main.cpp)
target_link_libraries(glauber ${ROOT_LIBRARIES} Centrality)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment