[project] requires Windows to build breakgen lib

This commit is contained in:
Roman Shevchenko
2016-11-09 10:45:11 +01:00
parent 944b6834a1
commit 41c2ff1d95
+5 -1
View File
@@ -1,11 +1,15 @@
cmake_minimum_required(VERSION 3.1.0)
project(breakgen)
if(NOT WIN32)
message(FATAL_ERROR "Windows only.")
endif()
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /MT")
add_library(breakgen SHARED AppMain.c)
if (CMAKE_GENERATOR_PLATFORM STREQUAL "x64")
if(CMAKE_GENERATOR_PLATFORM STREQUAL "x64")
set(JAVA_HOME $ENV{JDK_18_x64})
set_target_properties(breakgen PROPERTIES OUTPUT_NAME "breakgen64")
else()