-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
31 lines (21 loc) · 988 Bytes
/
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
cmake_minimum_required(VERSION 3.13)
project(GoomOnline)
include(ExternalProject)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
if(NOT DEFINED CMAKE_BUILD_WITH_INSTALL_RPATH)
set(CMAKE_BUILD_WITH_INSTALL_RPATH true)
endif()
if(NOT DEFINED CMAKE_INSTALL_RPATH)
set(CMAKE_INSTALL_RPATH $ORIGIN)
endif()
if(NOT DEFINED CMAKE_LIBRARY_OUTPUT_DIRECTORY)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
endif()
if(NOT DEFINED CMAKE_RUNTIME_OUTPUT_DIRECTORY)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
endif()
#ExternalProject_Add(goom BUILD_ALWAYS true PREFIX ${CMAKE_BINARY_DIR}/ext/goom2k4-0-nologo SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/ext/goom2k4-0-nologo CONFIGURE_COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/ext/goom2k4-0-nologo/configure --prefix ${CMAKE_BINARY_DIR}/ext/goom2k4-0-nologo BUILD_COMMAND ${CMAKE_MAKE_PROGRAM} CFLAGS=-O3\ -DNDEBUG\ -ffast-math\ -flto)
add_subdirectory(ext/goom2k4-0-nologo)
add_subdirectory(src)