-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
31 lines (23 loc) · 867 Bytes
/
CMakeLists.txt
File metadata and controls
31 lines (23 loc) · 867 Bytes
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
cmake_minimum_required(VERSION 3.5)
project("MouseEditor" CXX)
# Set output directories.
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
# Check if compiler name.
message(${CMAKE_CXX_COMPILER_ID})
# Set build type definitions.
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
add_definitions(-D__DEBUG__)
endif (CMAKE_BUILD_TYPE STREQUAL "Debug")
if (CMAKE_BUILD_TYPE STREQUAL "Release")
add_definitions(-D__RELEASE__)
endif (CMAKE_BUILD_TYPE STREQUAL "Release")
# Add spdlog project
add_subdirectory("vendor/spdlog/")
# Add mosue project
file(GLOB_RECURSE mouse_hdrs "src/*.h")
file(GLOB_RECURSE mouse_srcs "src/*.cpp")
include_directories("src/"
"vendor/spdlog/include/")
add_executable(mouse ${mouse_hdrs} ${mouse_srcs})