2020-12-22 17:10:01 +00:00
|
|
|
cmake_minimum_required(VERSION 3.16)
|
|
|
|
project(libimhex)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
|
|
|
2020-12-27 13:12:53 +00:00
|
|
|
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../../external/ImGui ${CMAKE_CURRENT_BINARY_DIR}/external/ImGui)
|
2020-12-22 17:10:01 +00:00
|
|
|
|
|
|
|
set(CMAKE_STATIC_LIBRARY_PREFIX "")
|
|
|
|
|
|
|
|
add_library(libimhex STATIC
|
|
|
|
source/helpers/event.cpp
|
2020-12-27 13:12:53 +00:00
|
|
|
source/helpers/utils.cpp
|
|
|
|
|
2020-12-22 17:10:01 +00:00
|
|
|
source/providers/provider.cpp
|
2020-12-27 13:12:53 +00:00
|
|
|
|
2020-12-22 17:10:01 +00:00
|
|
|
source/views/view.cpp
|
2020-12-27 13:12:53 +00:00
|
|
|
)
|
2020-12-22 17:10:01 +00:00
|
|
|
|
|
|
|
target_include_directories(libimhex PUBLIC include)
|
|
|
|
target_link_libraries(libimhex PRIVATE imgui)
|