2019-05-17 20:40:38 +02:00
|
|
|
set(CMAKE_SYSTEM_NAME Generic)
|
|
|
|
|
|
|
|
if (NOT DEFINED ENV{SERENITY_ROOT})
|
|
|
|
message(FATAL_ERROR "SERENITY_ROOT not set. Please source Toolchain/UseIt.sh.")
|
|
|
|
endif()
|
|
|
|
|
2019-05-18 02:01:45 +02:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti -fno-exceptions")
|
|
|
|
|
2019-05-17 20:40:38 +02:00
|
|
|
# where to read from/write to
|
2020-05-26 14:20:24 -04:00
|
|
|
set(CMAKE_SYSROOT $ENV{SERENITY_ROOT}/Build/Root)
|
|
|
|
set(CMAKE_STAGING_PREFIX $ENV{SERENITY_ROOT}/Build/Root/usr)
|
|
|
|
set(CMAKE_INSTALL_PREFIX $ENV{SERENITY_ROOT}/Build/Root/usr)
|
|
|
|
set(CMAKE_INSTALL_DATAROOTDIR $ENV{SERENITY_ROOT}/Build/Root/usr/share)
|
2019-05-17 20:40:38 +02:00
|
|
|
|
|
|
|
set(CMAKE_C_COMPILER i686-pc-serenity-gcc)
|
|
|
|
set(CMAKE_CXX_COMPILER i686-pc-serenity-g++)
|
|
|
|
|
|
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
|
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
|
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
|
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
|
|
|
|
|