1
0
Fork 0
mirror of https://github.com/gwm17/catima.git synced 2024-11-22 10:18:50 -05:00
This commit is contained in:
hrocho 2018-04-18 15:19:03 +02:00
parent cfb2c5f21c
commit 0fe45db471
3 changed files with 14 additions and 4 deletions

View File

@ -70,7 +70,15 @@ file(GLOB HEADERS *.h)
add_library(catima SHARED ${SOURCES})
add_library(catima_static STATIC ${SOURCES})
set_target_properties(catima_static PROPERTIES OUTPUT_NAME catima POSITION_INDEPENDENT_CODE ON)
set_target_properties(catima PROPERTIES
POSITION_INDEPENDENT_CODE ON
LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib
)
set_target_properties(catima_static
PROPERTIES OUTPUT_NAME catima
POSITION_INDEPENDENT_CODE ON
ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib
)
target_link_libraries(catima ${EXTRA_LIBS} ${GSL_LIBRARIES} )
target_link_libraries(catima_static ${EXTRA_LIBS} ${GSL_LIBRARIES})

View File

@ -1,3 +1,3 @@
export CATIMAPATH=${PROJECT_BINARY_DIR}
#export PATH=$PATH:$CATIMAPATH/bin
export ${RPATH_VARIABLE}=$LD_LIBRARY_PATH:$CATIMAPATH
export PATH=$PATH:$CATIMAPATH/bin
export ${RPATH_VARIABLE}=$LD_LIBRARY_PATH:$CATIMAPATH/lib

View File

@ -1,3 +1,4 @@
enable_testing()
add_definitions(-Dlest_FEATURE_COLOURISE=1)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/tests)
@ -6,6 +7,7 @@ set(CATIMA_TESTS test_calculations test_generated test_storage test_structures t
foreach(entry ${CATIMA_TESTS})
add_executable(${entry} ${entry}.cpp)
target_link_libraries(${entry} catima)
add_test(${entry} ${PROJECT_BINARY_DIR}/tests/${entry})
endforeach(entry in ${CATIMA_TESTS})
@ -14,4 +16,4 @@ MESSAGE( STATUS "CMAKE_C_COMPILER: " ${CMAKE_C_COMPILER} )
foreach(entry ${C_TESTS})
add_executable(${entry} ${entry}.c)
target_link_libraries(${entry} catima)
endforeach(entry in ${C_TESTS})
endforeach(entry in ${C_TESTS})