mirror of
https://github.com/gwm17/catima.git
synced 2024-11-22 18:28:51 -05:00
commit
6e85043ce8
|
@ -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})
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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})
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user