forked from nydus/storm-extract
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
39 lines (31 loc) · 1.23 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
project(STORMEXTRACT)
cmake_minimum_required(VERSION 2.6)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${STORMEXTRACT_BINARY_DIR}/bin")
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${STORMEXTRACT_BINARY_DIR}/lib")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${STORMEXTRACT_BINARY_DIR}/bin")
set(CMAKE_CXX_FLAGS "-std=c++11")
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
endif()
if (NOT EXISTS "${STORMEXTRACT_SOURCE_DIR}/CascLib/CMakeLists.txt")
message(FATAL_ERROR
"Missing dependency: CascLib
storm-extract requires the CascLib library.
It is provided as a GIT submodule of this repository.
Did you forgot to execute the following commands?
git submodule init
git submodule update")
endif()
add_subdirectory(CascLib)
include_directories("${STORMEXTRACT_SOURCE_DIR}/src/"
"${STORMEXTRACT_SOURCE_DIR}/CascLib/src/"
"${STORMEXTRACT_SOURCE_DIR}/include/"
)
add_executable(storm-extract src/storm-extract.cpp)
target_link_libraries(storm-extract casc)
# Set the RPATH
if (APPLE)
set_target_properties(storm-extract PROPERTIES LINK_FLAGS "-Wl,-rpath,@loader_path/.")
elseif (UNIX)
set_target_properties(storm-extract PROPERTIES INSTALL_RPATH ".")
endif()