2015-08-17 21:46:04 +00:00
|
|
|
if(NOT HECL_SUBPORJECT)
|
2015-07-07 03:24:09 +00:00
|
|
|
cmake_minimum_required(VERSION 3.0)
|
|
|
|
project(hecl)
|
2015-07-26 02:52:02 +00:00
|
|
|
if(MSVC)
|
2015-08-02 04:25:54 +00:00
|
|
|
# Shaddup MSVC
|
|
|
|
add_definitions(-DUNICODE=1 -D_UNICODE=1 -D_CRT_SECURE_NO_WARNINGS=1 /wd4267 /wd4244)
|
2015-07-22 19:14:50 +00:00
|
|
|
else()
|
2015-08-02 04:25:54 +00:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wno-multichar -fno-exceptions")
|
2015-07-22 19:14:50 +00:00
|
|
|
endif()
|
2015-08-17 21:46:04 +00:00
|
|
|
endif()
|
|
|
|
|
2015-08-17 22:15:23 +00:00
|
|
|
configure_file(DataSpecRegistry.hpp.in ${CMAKE_CURRENT_SOURCE_DIR}/DataSpecRegistry.hpp @ONLY)
|
|
|
|
|
2015-07-28 02:25:33 +00:00
|
|
|
list(APPEND HECL_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include ${CMAKE_CURRENT_SOURCE_DIR}/blender)
|
2015-08-17 21:46:04 +00:00
|
|
|
set(HECL_INCLUDE_DIR ${HECL_INCLUDE_DIR} PARENT_SCOPE)
|
2015-07-16 02:03:38 +00:00
|
|
|
set(ATHENA_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/extern/Athena/include)
|
2015-08-17 21:46:04 +00:00
|
|
|
set(ATHENA_INCLUDE_DIR ${ATHENA_INCLUDE_DIR} PARENT_SCOPE)
|
2015-07-16 02:03:38 +00:00
|
|
|
set(LOG_VISOR_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/extern/LogVisor/include)
|
2015-08-17 21:46:04 +00:00
|
|
|
set(LOG_VISOR_INCLUDE_DIR ${LOG_VISOR_INCLUDE_DIR} PARENT_SCOPE)
|
2015-07-19 20:52:22 +00:00
|
|
|
set(SQUISH_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/extern/libSquish)
|
2015-08-17 21:46:04 +00:00
|
|
|
set(SQUISH_INCLUDE_DIR ${SQUISH_INCLUDE_DIR} PARENT_SCOPE)
|
2015-08-04 21:37:12 +00:00
|
|
|
add_subdirectory(bintoc)
|
2015-07-07 03:24:09 +00:00
|
|
|
add_subdirectory(extern)
|
2015-08-17 21:46:04 +00:00
|
|
|
include_directories(include ${LOG_VISOR_INCLUDE_DIR} ${ATHENA_INCLUDE_DIR})
|
2015-07-07 03:24:09 +00:00
|
|
|
add_subdirectory(lib)
|
2015-07-08 04:26:29 +00:00
|
|
|
add_subdirectory(blender)
|
2015-07-07 03:24:09 +00:00
|
|
|
add_subdirectory(driver)
|
|
|
|
install(DIRECTORY include/HECL DESTINATION include/HECL)
|