2021-09-12 23:48:01 -04:00
|
|
|
cmake_minimum_required(VERSION 3.5)
|
|
|
|
|
|
|
|
project(Rebuilder LANGUAGES CXX)
|
|
|
|
|
|
|
|
set(CMAKE_MFC_FLAG 2)
|
|
|
|
|
2021-09-13 01:02:09 -04:00
|
|
|
option(BUILD_UNICODE "Build with Unicode support" ON)
|
|
|
|
|
2021-09-12 23:48:01 -04:00
|
|
|
add_executable(Rebuilder WIN32
|
2021-09-13 01:43:18 -04:00
|
|
|
res/res.rc
|
2021-09-12 23:48:01 -04:00
|
|
|
src/app.cpp
|
|
|
|
src/app.h
|
2021-09-13 06:58:22 -04:00
|
|
|
src/launcher.cpp
|
|
|
|
src/launcher.h
|
2021-09-12 23:48:01 -04:00
|
|
|
src/window.cpp
|
|
|
|
src/window.h
|
|
|
|
)
|
2021-09-13 01:02:09 -04:00
|
|
|
|
|
|
|
target_compile_definitions(Rebuilder PRIVATE _AFXDLL)
|
|
|
|
if (BUILD_UNICODE)
|
|
|
|
target_compile_definitions(Rebuilder PRIVATE UNICODE _UNICODE)
|
|
|
|
target_link_options(Rebuilder PRIVATE /entry:wWinMainCRTStartup)
|
|
|
|
endif()
|
2021-09-13 06:58:22 -04:00
|
|
|
|
|
|
|
target_link_libraries(Rebuilder PRIVATE shlwapi.lib)
|