LEGOIslandRebuilder/CMakeLists.txt

21 lines
454 B
Text
Raw Normal View History

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
src/app.cpp
src/app.h
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()