-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
47 lines (37 loc) · 1.56 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
cmake_minimum_required(VERSION 3.13)
project(AmaneqSoftware)
message(STATUS "Project name: " ${PROJECT_NAME})
set(my_cxx_options "-Wall")
set(my_cxx_features "cxx_std_17")
message(STATUS "GCC options: " ${my_cxx_options})
message(STATUS "C++ standard: " ${my_cxx_features})
message(STATUS "")
include(GNUInstallDirs)
message(STATUS "CMAKE_INSTALL_PREFIX: " ${CMAKE_INSTALL_PREFIX} )
message(STATUS "CMAKE_INSTALL_BINDIR: " ${CMAKE_INSTALL_BINDIR} )
message(STATUS "CMAKE_INSTALL_INCLUDEDIR: " ${CMAKE_INSTALL_INCLUDEDIR} )
message(STATUS "CMAKE_INSTALL_LIBDIR: " ${CMAKE_INSTALL_LIBDIR} )
message(STATUS "CMAKE_INSTALL_DATADIR: " ${CMAKE_INSTALL_DATADIR} )
message(STATUS "")
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH ON)
set(CMAKE_INSTALL_RPATH "$ORIGIN/../${CMAKE_INSTALL_LIBDIR}")
if(APPLE)
message(STATUS "[BUILD on APPLE]")
elseif(UNIX)
message(STATUS "[BUILD on UNIX AND NOT APPLE]")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--no-as-needed,--enable-new-dtags")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-as-needed,--enable-new-dtags")
endif()
message(STATUS "CMAKE_EXE_LINKER_FLAGS: " ${CMAKE_EXE_LINKER_FLAGS} )
message(STATUS "CMAKE_SHARED_LINKER_FLAGS: " ${CMAKE_SHARED_LINKER_FLAGS} )
message(STATUS "")
find_package(HulCore REQUIRED)
include(CMakePrintHelpers)
if(HulCore_FOUND)
cmake_print_properties(TARGETS HulCore PROPERTIES INTERFACE_INCLUDE_DIRECTORIES)
else()
message(FITAL "HulCore is not found")
endif()
add_subdirectory(StrLRTDC)
add_subdirectory(StrHRTDC)
add_subdirectory(ClockPhaseSelect)