mirror of
https://github.com/gwm17/catima.git
synced 2024-11-22 10:18:50 -05:00
cmake
This commit is contained in:
parent
cfb2c5f21c
commit
0fe45db471
|
@ -70,7 +70,15 @@ file(GLOB HEADERS *.h)
|
||||||
|
|
||||||
add_library(catima SHARED ${SOURCES})
|
add_library(catima SHARED ${SOURCES})
|
||||||
add_library(catima_static STATIC ${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 ${EXTRA_LIBS} ${GSL_LIBRARIES} )
|
||||||
target_link_libraries(catima_static ${EXTRA_LIBS} ${GSL_LIBRARIES})
|
target_link_libraries(catima_static ${EXTRA_LIBS} ${GSL_LIBRARIES})
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
export CATIMAPATH=${PROJECT_BINARY_DIR}
|
export CATIMAPATH=${PROJECT_BINARY_DIR}
|
||||||
#export PATH=$PATH:$CATIMAPATH/bin
|
export PATH=$PATH:$CATIMAPATH/bin
|
||||||
export ${RPATH_VARIABLE}=$LD_LIBRARY_PATH:$CATIMAPATH
|
export ${RPATH_VARIABLE}=$LD_LIBRARY_PATH:$CATIMAPATH/lib
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
enable_testing()
|
||||||
add_definitions(-Dlest_FEATURE_COLOURISE=1)
|
add_definitions(-Dlest_FEATURE_COLOURISE=1)
|
||||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/tests)
|
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})
|
foreach(entry ${CATIMA_TESTS})
|
||||||
add_executable(${entry} ${entry}.cpp)
|
add_executable(${entry} ${entry}.cpp)
|
||||||
target_link_libraries(${entry} catima)
|
target_link_libraries(${entry} catima)
|
||||||
|
add_test(${entry} ${PROJECT_BINARY_DIR}/tests/${entry})
|
||||||
endforeach(entry in ${CATIMA_TESTS})
|
endforeach(entry in ${CATIMA_TESTS})
|
||||||
|
|
||||||
|
|
||||||
|
@ -14,4 +16,4 @@ MESSAGE( STATUS "CMAKE_C_COMPILER: " ${CMAKE_C_COMPILER} )
|
||||||
foreach(entry ${C_TESTS})
|
foreach(entry ${C_TESTS})
|
||||||
add_executable(${entry} ${entry}.c)
|
add_executable(${entry} ${entry}.c)
|
||||||
target_link_libraries(${entry} catima)
|
target_link_libraries(${entry} catima)
|
||||||
endforeach(entry in ${C_TESTS})
|
endforeach(entry in ${C_TESTS})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user