-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
25 lines (21 loc) · 904 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
cmake_minimum_required(VERSION 2.8)
project(ddpserver)
include(ExternalProject)
set(LIBPREFIX "${CMAKE_STATIC_LIBRARY_PREFIX}")
set(LIBSUFFIX "${CMAKE_STATIC_LIBRARY_SUFFIX}")
if("${LIBRARY_OUTPUT_PATH}" STREQUAL "")
MESSAGE( WARN " SETTING LIBRARY_OUTPUT_PATH")
SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)
MESSAGE( STATUS "LIBRARY_OUTPUT_PATH IS: " ${LIBRARY_OUTPUT_PATH} )
endif()
if("${EXECUTABLE_OUTPUT_PATH}" STREQUAL "")
MESSAGE( WARN " SETTING EXECUTABLE_OUTPUT_PATH")
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
MESSAGE( STATUS "EXECUTABLE_OUTPUT_PATH IS: " ${EXECUTABLE_OUTPUT_PATH} )
endif()
if("${CMAKE_MODULE_PATH}" STREQUAL "")
MESSAGE( WARN " SETTING EXECUTABLE_OUTPUT_PATH")
SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
MESSAGE( STATUS "CMAKE_MODULE_PATH IS: " ${CMAKE_MODULE_PATH} )
endif()
add_subdirectory(src)