2015-07-07 03:22:44 +00:00
|
|
|
cmake_minimum_required(VERSION 3.0)
|
2015-08-22 06:08:28 +00:00
|
|
|
project(PathShagged)
|
2015-08-17 22:05:00 +00:00
|
|
|
if(MSVC)
|
|
|
|
# Shaddup MSVC
|
2015-08-31 03:44:42 +00:00
|
|
|
add_definitions(-DUNICODE=1 -D_UNICODE=1 -D_CRT_SECURE_NO_WARNINGS=1 -DD_SCL_SECURE_NO_WARNINGS=1 /wd4267 /wd4244 /wd4305)
|
2015-08-17 22:05:00 +00:00
|
|
|
else()
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wno-multichar -fno-exceptions")
|
2015-07-07 03:22:44 +00:00
|
|
|
endif()
|
2015-08-17 22:05:00 +00:00
|
|
|
|
2015-09-27 05:29:31 +00:00
|
|
|
if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
2015-09-13 03:43:22 +00:00
|
|
|
include_directories(/usr/local/include)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
#disable libBoo for FreeBSD for the time being
|
|
|
|
if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
2015-08-18 19:45:28 +00:00
|
|
|
add_subdirectory(libBoo)
|
2015-08-18 22:51:54 +00:00
|
|
|
set(BOO_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/libBoo/include)
|
2015-09-13 03:43:22 +00:00
|
|
|
endif()
|
2015-08-18 19:45:28 +00:00
|
|
|
|
2015-08-17 22:15:52 +00:00
|
|
|
set(HECL_DATASPEC_DECLS
|
|
|
|
"/* RetroCommon specs */
|
|
|
|
namespace Retro
|
|
|
|
{
|
|
|
|
extern HECL::Database::DataSpecEntry SpecEntMP1;
|
|
|
|
extern HECL::Database::DataSpecEntry SpecEntMP2;
|
|
|
|
extern HECL::Database::DataSpecEntry SpecEntMP3;
|
|
|
|
}")
|
|
|
|
set(HECL_DATASPEC_PUSHES
|
|
|
|
" /* RetroCommon */
|
|
|
|
HECL::Database::DATA_SPEC_REGISTRY.push_back(&Retro::SpecEntMP1);
|
|
|
|
HECL::Database::DATA_SPEC_REGISTRY.push_back(&Retro::SpecEntMP2);
|
|
|
|
HECL::Database::DATA_SPEC_REGISTRY.push_back(&Retro::SpecEntMP3);")
|
2015-08-17 22:05:00 +00:00
|
|
|
add_subdirectory(hecl)
|
|
|
|
add_subdirectory(NODLib)
|
2015-08-18 05:54:43 +00:00
|
|
|
set(NODLIB_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/NODLib/include)
|
2015-08-20 02:52:07 +00:00
|
|
|
add_subdirectory(MathLib)
|
|
|
|
set(MATHLIB_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/MathLib/include)
|
2015-08-17 22:05:00 +00:00
|
|
|
include_directories(${ATHENA_INCLUDE_DIR} ${LOG_VISOR_INCLUDE_DIR} ${HECL_INCLUDE_DIR}
|
2015-08-20 02:52:07 +00:00
|
|
|
${NODLIB_INCLUDE_DIR} ${MATHLIB_INCLUDE_DIR}
|
2015-08-17 05:26:58 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR})
|
2015-07-07 03:22:44 +00:00
|
|
|
add_subdirectory(DataSpec)
|
2015-09-13 03:43:22 +00:00
|
|
|
#disable Runtime on FreeBSD for now
|
|
|
|
if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
2015-07-11 22:41:10 +00:00
|
|
|
add_subdirectory(Runtime)
|
2015-09-13 03:43:22 +00:00
|
|
|
endif()
|