2017-03-23 13:17:00 +01:00
|
|
|
cmake_minimum_required(VERSION 3.2)
|
2018-05-23 00:08:13 +02:00
|
|
|
project(tools)
|
2017-03-23 13:17:00 +01:00
|
|
|
|
2018-05-23 00:08:13 +02:00
|
|
|
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
|
|
|
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
|
|
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
2017-03-23 13:17:00 +01:00
|
|
|
|
2018-05-23 00:08:13 +02:00
|
|
|
if(MSVC)
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /std:c++latest")
|
|
|
|
elseif(APPLE)
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1z")
|
|
|
|
else()
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
add_subdirectory(libraries)
|
|
|
|
find_package(ZLIB REQUIRED)
|
|
|
|
|
|
|
|
include_directories(common)
|
2017-03-23 13:17:00 +01:00
|
|
|
add_subdirectory(elf2rpl)
|
2018-05-23 00:08:13 +02:00
|
|
|
add_subdirectory(rplgen)
|