Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
69 lines (58 sloc) 1.97 KB
cmake_minimum_required(VERSION 2.8)
project( enkiTSExamples )
find_package(OpenGL REQUIRED)
include_directories("enkiTS/src")
include_directories("Remotery/lib")
include_directories("imgui")
include_directories("microprofile")
include_directories("glfw/include")
include_directories("imgui/examples")
set( ENKITS_BUILD_EXAMPLES OFF CACHE BOOL "Build basic example applications" )
set( GLFW_BUILD_EXAMPLES OFF CACHE BOOL "GLFW lib only" )
set( GLFW_BUILD_TESTS OFF CACHE BOOL "GLFW lib only" )
set( GLFW_BUILD_DOCS OFF CACHE BOOL "GLFW lib only" )
set( GLFW_BUILD_INSTALL OFF CACHE BOOL "GLFW lib only" )
add_subdirectory( enkiTS )
add_subdirectory( glfw )
set( ENKITSREMOTERYSAMPLE_SRC
enkiTSRemoteryExample.cpp
Remotery/lib/Remotery.h
Remotery/lib/Remotery.c
)
add_executable( enkiTSRemoteryExample ${ENKITSREMOTERYSAMPLE_SRC} )
target_link_libraries(enkiTSRemoteryExample enkiTS )
if( ENKITS_BUILD_C_INTERFACE )
set( ENKITSREMOTERYSAMPLE_C_SRC
enkiTSRemoteryExample.c
Remotery/lib/Remotery.h
Remotery/lib/Remotery.c
)
add_executable( enkiTSRemoteryExample_C ${ENKITSREMOTERYSAMPLE_C_SRC} )
target_link_libraries(enkiTSRemoteryExample_C enkiTS )
endif()
if(UNIX)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
endif()
if(APPLE)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
endif()
if(WIN32)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /d2Zi+" )
endif()
set( ENKITSMICROPROFILESAMPLE_SRC
microprofile/microprofile.h
microprofile/microprofileui.h
imgui/imgui.h
imgui/imgui.cpp
imgui/imgui_internal.h
imgui/imgui_demo.cpp
imgui/imgui_draw.cpp
imgui/imconfig.h
imgui/examples/imgui_impl_glfw.h
imgui/examples/imgui_impl_glfw.cpp
imgui/examples/imgui_impl_opengl2.h
imgui/examples/imgui_impl_opengl2.cpp
enkiTSMicroprofileExample.cpp
)
add_executable( enkiTSMicroprofileExample ${ENKITSMICROPROFILESAMPLE_SRC} )
target_link_libraries(enkiTSMicroprofileExample enkiTS glfw ${GLFW_LIBRARIES} )