Commit 58d00cab authored by Pascal Palenda's avatar Pascal Palenda
Browse files

Apply cmake format

parent 6e68b653
......@@ -84,9 +84,9 @@ target_compile_definitions (${PROJECT_NAME} PUBLIC $<IF:$<BOOL:${BUILD_SHARED_LI
target_compile_features (${PROJECT_NAME} PUBLIC cxx_std_11)
if( NOT CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
set_property( TARGET ${PROJECT_NAME} PROPERTY FOLDER "ITACoreLibs" )
endif()
if (NOT CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
set_property (TARGET ${PROJECT_NAME} PROPERTY FOLDER "ITACoreLibs")
endif ()
# install & export
cmake_dependent_option (
......
......@@ -86,13 +86,13 @@ file (DOWNLOAD https://people.sc.fsu.edu/~jburkardt/c_src/spline/spline.c
if (EXISTS ${CMAKE_CURRENT_BINARY_DIR}/_external/spline/include/spline.h
AND EXISTS ${CMAKE_CURRENT_BINARY_DIR}/_external/spline/src/spline.c
)
file(READ ${CMAKE_CURRENT_BINARY_DIR}/_external/spline/include/spline.h spline_code)
string(REPLACE double float spline_code "${spline_code}")
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/_external/spline/include/spline.h "${spline_code}")
file (READ ${CMAKE_CURRENT_BINARY_DIR}/_external/spline/include/spline.h spline_code)
string (REPLACE double float spline_code "${spline_code}")
file (WRITE ${CMAKE_CURRENT_BINARY_DIR}/_external/spline/include/spline.h "${spline_code}")
file(READ ${CMAKE_CURRENT_BINARY_DIR}/_external/spline/src/spline.c spline_code)
string(REPLACE double float spline_code "${spline_code}")
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/_external/spline/src/spline.c "${spline_code}")
file (READ ${CMAKE_CURRENT_BINARY_DIR}/_external/spline/src/spline.c spline_code)
string (REPLACE double float spline_code "${spline_code}")
file (WRITE ${CMAKE_CURRENT_BINARY_DIR}/_external/spline/src/spline.c "${spline_code}")
add_library (
spline STATIC ${CMAKE_CURRENT_BINARY_DIR}/_external/spline/include/spline.h
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment