mirror of
https://github.com/reactos/reactos.git
synced 2025-01-11 08:38:17 +00:00
13dc8a4761
- Generalize CMAKE_C_LINK_EXECUTABLE and CMAKE_EXE_LINKER_FLAGS, and use additional flags per module. - Fix usetup: make it depend on psdk and buildno_header, and also fix the entry point (_NtProcessStartup -> _NtProcessStartup@4) - Make ext2lib depend on psdk. svn path=/branches/cmake-bringup/; revision=48802
22 lines
496 B
CMake
22 lines
496 B
CMake
|
|
add_definitions(-DUNICODE -D_UNICODE)
|
|
add_definitions(-DDISABLE_HTMLHELP_SUPPORT=1)
|
|
|
|
add_executable(calc WIN32
|
|
about.c
|
|
convert.c
|
|
function.c
|
|
rpn.c
|
|
utl.c
|
|
winmain.c
|
|
resource.rc)
|
|
|
|
target_link_libraries(calc mingw_wmain mingw_common
|
|
-ladvapi32
|
|
-luser32
|
|
-lgdi32
|
|
-lmsvcrt)
|
|
|
|
set_target_properties(calc PROPERTIES LINK_FLAGS "-Wl,-entry,_WinMainCRTStartup")
|
|
|
|
add_dependencies(calc psdk)
|