0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-27 08:41:02 +08:00
easy_profiler/CMakeLists.txt

48 lines
875 B
CMake
Raw Normal View History

2016-02-16 23:21:12 +03:00
project(profiling_tool)
cmake_minimum_required(VERSION 2.8)
2016-11-02 22:37:51 +03:00
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
2016-02-16 23:21:12 +03:00
set(
2016-12-02 00:08:25 +03:00
EASY_ROOT
2016-09-07 21:32:14 +03:00
${CMAKE_CURRENT_LIST_DIR}
2016-02-16 23:21:12 +03:00
)
set(OUTPUT_DIR
2016-12-02 00:08:25 +03:00
${EASY_ROOT}/bin
)
2016-02-16 23:21:12 +03:00
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY
${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(
2016-12-02 00:35:25 +03:00
easy_profiler_core/include
2016-02-16 23:21:12 +03:00
)
2016-02-17 23:24:35 +03:00
if(UNIX)
2016-08-31 21:51:00 +03:00
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-long-long -Wno-reorder -Wno-braced-scalar-init -pedantic -O3" )
else()
2016-09-07 21:32:14 +03:00
add_definitions(
-D_CRT_SECURE_NO_WARNINGS
)
2016-02-17 23:24:35 +03:00
endif(UNIX)
2016-11-02 22:37:51 +03:00
set(CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_LIST_DIR}/sdk)
2016-12-02 00:35:25 +03:00
add_subdirectory(easy_profiler_core)
2016-12-02 00:08:25 +03:00
add_subdirectory(profiler_gui)
2016-02-16 23:25:12 +03:00
add_subdirectory(sample)
2016-03-21 06:22:48 +03:00
add_subdirectory(reader)
2016-12-02 00:08:25 +03:00