Files
openide/native/WinFsNotifier/CMakeLists.txt
Roman Shevchenko 2bcf52263c [platform] dropping x86 builds of Windows file watcher, Windows launcher (IDEA-270576)
GitOrigin-RevId: 212c3c31cecdbd763742da417009c508be9bb793
2021-09-21 19:10:22 +00:00

21 lines
518 B
CMake

cmake_minimum_required(VERSION 3.1)
project(WinFsNotifier)
if(NOT WIN32)
message(FATAL_ERROR "Windows only.")
endif()
if (DEFINED ENV{BUILD_NUMBER})
set(BUILD_NUMBER $ENV{BUILD_NUMBER})
else()
set(BUILD_NUMBER 9999)
endif()
string(TIMESTAMP YEAR "%Y")
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /MT")
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/fileWatcher3.rc ${CMAKE_CURRENT_BINARY_DIR}/fileWatcher3.rc @ONLY)
add_executable(fsnotifier fileWatcher3.c ${CMAKE_CURRENT_BINARY_DIR}/fileWatcher3.rc)