2022-01-14 23:14:12 +00:00
|
|
|
project(main)
|
|
|
|
|
2022-02-06 21:29:16 +00:00
|
|
|
add_executable(main ${APPLICATION_TYPE}
|
2022-01-14 23:14:12 +00:00
|
|
|
source/main.cpp
|
|
|
|
|
|
|
|
source/window/window.cpp
|
|
|
|
source/window/win_window.cpp
|
|
|
|
source/window/macos_window.cpp
|
|
|
|
source/window/linux_window.cpp
|
|
|
|
|
|
|
|
source/init/splash_window.cpp
|
|
|
|
source/init/tasks.cpp
|
|
|
|
|
|
|
|
${IMHEX_ICON}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(main PUBLIC include)
|
2022-08-05 06:32:08 +00:00
|
|
|
setupCompilerWarnings(main)
|
2022-01-14 23:14:12 +00:00
|
|
|
|
|
|
|
set_target_properties(main PROPERTIES
|
|
|
|
OUTPUT_NAME "imhex"
|
|
|
|
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/..
|
|
|
|
CXX_VISIBILITY_PRESET hidden
|
|
|
|
POSITION_INDEPENDENT_CODE ON)
|
|
|
|
|
2022-02-02 16:19:50 +00:00
|
|
|
add_compile_definitions(IMHEX_PROJECT_NAME="${PROJECT_NAME}")
|
|
|
|
|
2022-01-14 23:14:12 +00:00
|
|
|
if (WIN32)
|
2022-09-29 08:33:39 +00:00
|
|
|
target_link_libraries(main PRIVATE usp10 libimhex libromfs-imhex wsock32 ws2_32 Dwmapi.lib)
|
2022-01-14 23:14:12 +00:00
|
|
|
else ()
|
2022-09-29 08:33:39 +00:00
|
|
|
target_link_libraries(main PRIVATE libimhex libromfs-imhex pthread)
|
2022-03-26 23:01:28 +00:00
|
|
|
endif ()
|
|
|
|
|
|
|
|
if (APPLE)
|
|
|
|
add_compile_definitions(GL_SILENCE_DEPRECATION)
|
2022-01-14 23:14:12 +00:00
|
|
|
endif ()
|