mirror of
https://github.com/isledecomp/LEGOIslandRebuilder.git
synced 2025-02-17 08:30:56 -05:00
25 lines
557 B
CMake
25 lines
557 B
CMake
cmake_minimum_required(VERSION 3.5)
|
|
|
|
project(Rebuilder LANGUAGES CXX)
|
|
|
|
set(CMAKE_MFC_FLAG 2)
|
|
|
|
option(BUILD_UNICODE "Build with Unicode support" ON)
|
|
|
|
add_executable(Rebuilder WIN32
|
|
res/res.rc
|
|
src/app.cpp
|
|
src/app.h
|
|
src/launcher.cpp
|
|
src/launcher.h
|
|
src/window.cpp
|
|
src/window.h
|
|
)
|
|
|
|
target_compile_definitions(Rebuilder PRIVATE _AFXDLL)
|
|
if (BUILD_UNICODE)
|
|
target_compile_definitions(Rebuilder PRIVATE UNICODE _UNICODE)
|
|
target_link_options(Rebuilder PRIVATE /entry:wWinMainCRTStartup)
|
|
endif()
|
|
|
|
target_link_libraries(Rebuilder PRIVATE shlwapi.lib)
|