1
0
Fork 0
mirror of https://github.com/gwm17/catima.git synced 2024-11-22 18:28:51 -05:00

Merge pull request #33 from hrosiak/cmake

cmake
This commit is contained in:
Andrej Prochazka 2018-04-18 15:20:14 +02:00 committed by GitHub
commit 6e85043ce8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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})