aboutsummaryrefslogtreecommitdiffstats
path: root/dev/MinGfx/tests/gui_plus_opengl/CMakeLists.txt
blob: 5e49e7c356c83f4b2e8592b61ba7fbafcbfa290e (plain) (blame)
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
# This file is part of the MinGfx cmake build system.  
# See the main MinGfx/CMakeLists.txt file for details.

project(mingfx-test-gui-plus-opengl)


# Source:
set (SOURCEFILES 
  gui_plus_opengl.cc
  main.cc
)
set (HEADERFILES
  gui_plus_opengl.h
)
set (CONFIGFILES
)


# Define the target
add_executable(${PROJECT_NAME} ${HEADERFILES} ${SOURCEFILES})


# Add dependency on libMinGfx:
target_include_directories(${PROJECT_NAME} PUBLIC ../../src)
target_link_libraries(${PROJECT_NAME} PUBLIC MinGfx)

# Add external dependency on NanoGUI
include(AutoBuildNanoGUI)
AutoBuild_use_package_NanoGUI(${PROJECT_NAME} PUBLIC)



# Installation:
install(TARGETS ${PROJECT_NAME}
        RUNTIME DESTINATION ${INSTALL_BIN_DEST}
        COMPONENT Tests)


# For better organization when using an IDE with folder structures:
set_property(TARGET ${PROJECT_NAME} PROPERTY FOLDER "Tests")
source_group("Header Files" FILES ${HEADERFILES})
set_source_files_properties(${CONFIGFILES} PROPERTIES HEADER_FILE_ONLY TRUE)
source_group("Config Files" FILES ${CONFIGFILES})