You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

18 lines
520 B

cmake_minimum_required (VERSION 2.4)
project (freeze)
set(CMAKE_BINARY_DIR ${CMAKE_SOURCE_DIR}/bin)
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR})
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR})
add_definitions(-DUNICODE -D_UNICODE)
SET( CMAKE_EXE_LINKER_FLAGS "-mwindows" )
include_directories("${PROJECT_SOURCE_DIR}")
add_executable (freeze src/main.cpp src/resource.rc)
# mkdir build && cd build # rm -r CMakeCache.txt CMakeFiles/
# cmake -DCMAKE_TOOLCHAIN_FILE=../Toolchain-cross-mingw32-linux.cmake ../
# make