Add install setup

fixes-turtlebasket
Mattia Montanari 2021-07-03 13:26:49 +02:00
parent e3c30e1986
commit 6ef178f508
1 changed files with 4 additions and 1 deletions

View File

@ -62,9 +62,12 @@ ENDIF(BUILD_STATIC_LIB)
set_target_properties(${PROJECT_NAME} PROPERTIES PUBLIC_HEADER ${SOURCE_HEADS}) set_target_properties(${PROJECT_NAME} PROPERTIES PUBLIC_HEADER ${SOURCE_HEADS})
# ADD DEFAULT COMPILER FLAGS # Add compiler flags
include(CompilerFlags) include(CompilerFlags)
# Install setup
install(TARGETS ${PROJECT_NAME} PERMISSIONS WORLD_WRITE )
find_package(OpenMP REQUIRED) find_package(OpenMP REQUIRED)
if (OPENMP_FOUND) if (OPENMP_FOUND)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}") set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")