-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
71 lines (48 loc) · 1.52 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
cmake_minimum_required( VERSION 3.1 )
project( freeframe )
set( CMAKE_CXX_STANDARD 11 )
set( CMAKE_CXX_STANDARD_REQUIRED ON )
set( CMAKE_CXX_EXTENSIONS ON )
set( CMAKE_INCLUDE_CURRENT_DIR OFF )
set( PKG_CONFIG_USE_CMAKE_PREFIX_PATH ON )
#----------------------------------------------------------------------------
if( CMAKE_SIZEOF_VOID_P EQUAL 8 )
message(STATUS "*** Have SIZEOF void * = 8, so 64-bit")
set( IS_64_BIT 1 )
else ()
message(STATUS "*** SIZEOF void * != 8, so not 64-bit")
endif ()
if( IS_64_BIT )
set( FF_BITS 64 )
else()
set( FF_BITS 32 )
endif()
#------------------------------------------------------------------------------
set( PATH_APP . )
if( WIN32 )
set( PATH_APP bin )
set( CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD 1 )
endif( WIN32 )
if( UNIX AND NOT APPLE )
set( PATH_APP bin )
endif()
if( WIN32 )
add_definitions( -D_CRT_SECURE_NO_WARNINGS -DTARGET_OS_WIN )
elseif( APPLE )
add_definitions( -DTARGET_OS_MAC )
endif()
#------------------------------------------------------------------------------
# Enable Unit Testing
include( CTest )
set( CTEST_OUTPUT_ON_FAILURE ON )
#----------------------------------------------------------------------------
#find_package( Boost COMPONENTS
# date_time)
#if( Boost_FOUND )
# message( ${Boost_LIBRARIES} )
# include_directories( ${Boost_INCLUDE_DIR} )
# link_libraries( ${Boost_LIBRARIES})
#endif( Boost_FOUND )
#----------------------------------------------------------------------------
add_subdirectory( FreeFrame )
#add_subdirectory( tester )