-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
26 lines (18 loc) · 765 Bytes
/
CMakeLists.txt
File metadata and controls
26 lines (18 loc) · 765 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
cmake_minimum_required(VERSION 3.17)
set(CMAKE_GENERATOR_PLATFORM Win32)
project (H3API)
add_library(H3API STATIC "")
add_subdirectory(include)
add_compile_definitions(_H3API_LIBRARY_)
include_directories("${PROJECT_SOURCE_DIR}/include/")
file(GLOB_RECURSE _source_list *.cpp* *.hpp*)
foreach(_source IN ITEMS ${_source_list})
get_filename_component(_source_path "${_source}" PATH)
string(REPLACE "${CMAKE_SOURCE_DIR}" "" _group_path "${_source_path}")
string(REPLACE "/" "\\" _group_path "${_group_path}")
source_group("${_group_path}" FILES "${_source}")
endforeach()
if(NOT BINARY_CUSTOM_DIR)
set_target_properties(H3API PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
install(TARGETS H3API DESTINATION lib)
endif()