Commit b124cd06 authored by Pascal Palenda's avatar Pascal Palenda
Browse files

Move the compile definitions up in the file

parent 1cbb1436
......@@ -87,30 +87,6 @@ endif( )
#Definitions for Shared/Static
target_compile_definitions (${PROJECT_NAME} PUBLIC $<IF:$<BOOL:${BUILD_SHARED_LIBS}>,VANET_EXPORTS,VANET_STATIC>)
#Required compiler features
target_compile_features (${PROJECT_NAME} PUBLIC cxx_std_11)
#If build out of VA project, add parent folder "VA"
if (NOT CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
set_property (TARGET ${PROJECT_NAME} PROPERTY FOLDER "VA")
endif ()
#Install & export
packageProject (
NAME ${PROJECT_NAME}
VERSION ${PROJECT_VERSION}
BINARY_DIR ${PROJECT_BINARY_DIR}
INCLUDE_DIR ${PROJECT_SOURCE_DIR}/include
INCLUDE_DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}
DEPENDENCIES ""
COMPATIBILITY ExactVersion
NAMESPACE ${PROJECT_NAME}
DISABLE_VERSION_SUFFIX YES
)
#---Definitions---
math (EXPR RELEASE_LETTER "${PROJECT_VERSION_MINOR}+97")
......@@ -146,6 +122,27 @@ endif( )
#---END: Definitions---
#Required compiler features
target_compile_features (${PROJECT_NAME} PUBLIC cxx_std_11)
#If build out of VA project, add parent folder "VA"
if (NOT CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
set_property (TARGET ${PROJECT_NAME} PROPERTY FOLDER "VA")
endif ()
#Install & export
packageProject (
NAME ${PROJECT_NAME}
VERSION ${PROJECT_VERSION}
BINARY_DIR ${PROJECT_BINARY_DIR}
INCLUDE_DIR ${PROJECT_SOURCE_DIR}/include
INCLUDE_DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}
DEPENDENCIES ""
COMPATIBILITY ExactVersion
NAMESPACE ${PROJECT_NAME}
DISABLE_VERSION_SUFFIX YES
)
# tests
if( ITA_VA_WITH_TESTS )
......
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