Examples/Empty/CMakeLists.txt

Mon, 12 Jul 2021 17:44:02 +0300

author
dogukangulyasar
date
Mon, 12 Jul 2021 17:44:02 +0300
branch
4.x-dev
changeset 1713
80875b924288
parent 1120
0237ef7a948a
permissions
-rw-r--r--

* Edited readme Ubuntu 18.04 dependencies.

1120
0237ef7a948a * Sample CMakes
cemkalyoncu
parents:
diff changeset
1 cmake_minimum_required(VERSION 2.8)
0237ef7a948a * Sample CMakes
cemkalyoncu
parents:
diff changeset
2
0237ef7a948a * Sample CMakes
cemkalyoncu
parents:
diff changeset
3 set(PROJECT_NAME "Your project name")
0237ef7a948a * Sample CMakes
cemkalyoncu
parents:
diff changeset
4
0237ef7a948a * Sample CMakes
cemkalyoncu
parents:
diff changeset
5 project(${PROJECT_NAME})
0237ef7a948a * Sample CMakes
cemkalyoncu
parents:
diff changeset
6
0237ef7a948a * Sample CMakes
cemkalyoncu
parents:
diff changeset
7 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/Bin)
0237ef7a948a * Sample CMakes
cemkalyoncu
parents:
diff changeset
8 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_CURRENT_SOURCE_DIR}/Bin)
0237ef7a948a * Sample CMakes
cemkalyoncu
parents:
diff changeset
9 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_CURRENT_SOURCE_DIR}/Bin)
0237ef7a948a * Sample CMakes
cemkalyoncu
parents:
diff changeset
10
0237ef7a948a * Sample CMakes
cemkalyoncu
parents:
diff changeset
11 find_package(Gorgon REQUIRED)
0237ef7a948a * Sample CMakes
cemkalyoncu
parents:
diff changeset
12
0237ef7a948a * Sample CMakes
cemkalyoncu
parents:
diff changeset
13 add_compile_options(-std=c++14)
0237ef7a948a * Sample CMakes
cemkalyoncu
parents:
diff changeset
14
0237ef7a948a * Sample CMakes
cemkalyoncu
parents:
diff changeset
15 add_executable(${PROJECT_NAME}
0237ef7a948a * Sample CMakes
cemkalyoncu
parents:
diff changeset
16 Source/Main.cpp
0237ef7a948a * Sample CMakes
cemkalyoncu
parents:
diff changeset
17 )
0237ef7a948a * Sample CMakes
cemkalyoncu
parents:
diff changeset
18
0237ef7a948a * Sample CMakes
cemkalyoncu
parents:
diff changeset
19 linkgorgon(${PROJECT_NAME})
0237ef7a948a * Sample CMakes
cemkalyoncu
parents:
diff changeset
20
0237ef7a948a * Sample CMakes
cemkalyoncu
parents:
diff changeset
21 install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION bin)
0237ef7a948a * Sample CMakes
cemkalyoncu
parents:
diff changeset
22
0237ef7a948a * Sample CMakes
cemkalyoncu
parents:
diff changeset
23 #configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Resource/Data.gor ${CMAKE_CURRENT_SOURCE_DIR}/Bin/Data.gor COPYONLY)

mercurial