Skip to content
Snippets Groups Projects
Commit a49e927d authored by mkirsz's avatar mkirsz
Browse files

Fixing pipelines

parent 7a2fe09a
No related branches found
No related tags found
No related merge requests found
Pipeline #33047 canceled
......@@ -51,7 +51,7 @@ if(TADAH_ENABLE_OPENMP)
target_link_libraries(tadah.mlip.obj PUBLIC OpenMP::OpenMP_CXX)
endif()
add_library(tadah.mlip STATIC $<TARGET_OBJECTS:tadah.mlip.obj>)
add_library(tadah.mlip $<TARGET_OBJECTS:tadah.mlip.obj>)
include(CTest)
if(TADAH_BUILD_TESTS)
......
......@@ -11,8 +11,31 @@ FetchContent_MakeAvailable(Catch2)
file(GLOB tests_src "*.cpp")
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/tests_data DESTINATION .)
find_library(tadah.core NAMES tadah.core
PATHS ${CMAKE_CURRENT_SOURCE_DIR}/../../CORE/*
)
if(tadah.core)
message(STATUS "Found ${tadah.core}")
else()
message(FATAL_ERROR "
Could not find ltadah.core in the CORE module.
Hint: Recompile CORE.
")
endif()
find_library(tadah.models NAMES tadah.models
PATHS ${CMAKE_CURRENT_SOURCE_DIR}/../../MODELS/*
)
if(tadah.models)
message(STATUS "Found ${tadah.models}")
else()
message(FATAL_ERROR "
Could not find ltadah.models in the MODELS module.
Hint: Recompile MODELS.
")
endif()
add_executable(test_mlip ${tests_src})
target_link_libraries(test_mlip PRIVATE Catch2::Catch2 tadah.mlip)
target_link_libraries(test_mlip PRIVATE Catch2::Catch2 tadah.mlip ${tadah.core} ${tadah.models})
if(TADAH_ENABLE_OPENMP)
find_package(OpenMP REQUIRED)
......
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