2016-02-16 23:21:12 +03:00
|
|
|
project(profiling_tool)
|
|
|
|
cmake_minimum_required(VERSION 2.8)
|
|
|
|
|
|
|
|
set(
|
|
|
|
ROOT
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}
|
|
|
|
)
|
|
|
|
|
2016-02-18 00:47:41 +03:00
|
|
|
set(OUTPUT_DIR
|
|
|
|
${ROOT}/bin
|
|
|
|
)
|
|
|
|
|
2016-02-16 23:21:12 +03:00
|
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY
|
2016-02-18 00:47:41 +03:00
|
|
|
${OUTPUT_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY
|
|
|
|
${OUTPUT_DIR}
|
2016-02-16 23:21:12 +03:00
|
|
|
)
|
|
|
|
|
2016-03-21 06:22:48 +03:00
|
|
|
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY
|
|
|
|
${OUTPUT_DIR}
|
|
|
|
)
|
|
|
|
|
2016-02-16 23:21:12 +03:00
|
|
|
include_directories(
|
|
|
|
include
|
|
|
|
)
|
|
|
|
|
2016-02-17 23:24:35 +03:00
|
|
|
if(UNIX)
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
2016-08-07 21:40:23 +03:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-long-long -Wno-reorder -pedantic -O3" )
|
2016-03-03 14:55:38 +03:00
|
|
|
else()
|
|
|
|
add_definitions(
|
|
|
|
-D_CRT_SECURE_NO_WARNINGS
|
|
|
|
)
|
2016-02-17 23:24:35 +03:00
|
|
|
endif(UNIX)
|
|
|
|
|
2016-02-16 23:21:12 +03:00
|
|
|
add_subdirectory(src)
|
2016-02-16 23:25:12 +03:00
|
|
|
add_subdirectory(sample)
|
2016-03-21 06:22:48 +03:00
|
|
|
add_subdirectory(reader)
|
2016-04-29 16:13:32 +03:00
|
|
|
add_subdirectory(profiler_gui)
|